<extend name="Public:base" />
<!-- 网站标题 -->
<block name="title">学校管理页面</block>
<block name="appendheader"> 
	<!-- 删除确认插件 --> 
	<script type="text/javascript" src="__PUBLIC__/artDialog/jquery.artDialog.js?skin=default"></script> 
	<script type="text/javascript" src="__PUBLIC__/artDialog/iframeTools.js"></script> 
	<script type="text/javascript" src="__PUBLIC__/common/js/list.js"></script> 
	<script type="text/javascript">
		$(function() {
			$("#WebMenu-2000").addClass('active');	//选中父菜单
			$("#WebMenu-3005").addClass('active');	//选中当前菜单
		});
		
		//改变检索条件时提交表单
		function submit_form() {
			$("#searchForm").submit();
		}
	</script> 
	
	<script type="text/javascript">
		$(function() {
			//特别注意：
			//在模态窗口中异步加载的内容只有第一次传递参数值是合适的，在不刷新页面的情况下以后的加载都直接从缓存中读取
			//为避免此类bug，在每次关闭模态窗口时在回调函数中刷新整个网页（songyb 2015-08-18）
			$('#set_user_theme').on('hidden.bs.modal', function (e) {
				location.reload(true);
			});	
		});
		
	</script>
	<style>
		ul.page-list li a { padding-left:20px; }
		ul.page-list ul { margin-left:25px; margin-top:5px; }
		ul.page-list ul li { line-height:24px; }
		ul.page-list .page_checkall { position:absolute; top:8px; left:5px; z-index:999; }
	</style>
</block>
</block>
<!-- 当前位置 -->
<block name="breadcrumb">
	<div class="page-header pull-left">
		<div class="page-title">学校管理</div>
	</div>
	<ol class="breadcrumb page-breadcrumb pull-left">
		<li><i class="fa fa-home"></i>&nbsp;<a href="__APP__?g=Admin">首页</a>&nbsp;&nbsp;<i class="fa fa-angle-right"></i>&nbsp;&nbsp;</li>
		<li><a href="#">基础数据</a>&nbsp;&nbsp;<i class="fa fa-angle-right"></i>&nbsp;&nbsp;</li>
		<li class="active">学校管理</li>
	</ol>
</block>
<!-- 网页主内容区 -->
<block name="main_content">
	<div class="row">
		<div class="col-md-12">
			<div class="portlet box">
				<div class="portlet-body">
					<div class="row mbm">
						<div class="col-md-12">
							<a href="__APP__?g={:GROUP_NAME}&m={:MODULE_NAME}&a=add" class="btn btn-success"><i class="fa fa-plus"></i>&nbsp;添加</a>&nbsp;
							<a href="__APP__?g={:GROUP_NAME}&m={:MODULE_NAME}&a=import" class="btn btn-success"><i class="fa fa-plus"></i>&nbsp;批量导入</a>&nbsp;
							<a href="javascript:confirm_deleteall();" class="btn btn-danger"><i class="fa fa-trash-o"></i>&nbsp;批量删除</a>&nbsp;
<!--							<a href="#" class="btn btn-warning"><i class="fa fa-trash-o"></i>&nbsp;用户导入</a>&nbsp;-->
<!--							<a href="#" class="btn btn-warning"><i class="fa fa-trash-o"></i>&nbsp;用户导出</a>-->
						</div>
					</div>
					<div class="row mbm">
						<div class="col-md-12">
							<form id="searchForm" name="searchForm" action="__APP__?g={:GROUP_NAME}&m={:MODULE_NAME}&a={:ACTION_NAME}" method="post">
								<div class="col-sm-12 col-md-9 pl-0">
									<div class="row">
										<div class="col-sm-4">
											<select id="province_code" name="province_code" class="form-control" onChange="submit_form()">
												<option value="">-省份-</option>
												<volist name="province_list" id="vo">
													<option value="{$vo.code}" <eq name="Think.request.province_code" value="$vo.code">selected</eq> >{$vo.name}</option>
												</volist>
											</select>
										</div>
										<div class="col-sm-4 pl-0">
											<select id="city_code" name="city_code" class="form-control" onChange="submit_form()">
												<option value="">-市州-</option>
												<volist name="city_list" id="vo">
													<option value="{$vo.code}" <eq name="Think.request.city_code" value="$vo.code">selected</eq> >{$vo.name}</option>
												</volist>
											</select>
										</div>
										<div class="col-sm-4 pl-0">
											<select id="area_code" name="area_code" class="form-control" onChange="submit_form()">
												<option value="">-县区-</option>
												<volist name="area_list" id="vo">
													<option value="{$vo.code}" <eq name="Think.request.area_code" value="$vo.code">selected</eq> >{$vo.name}</option>
												</volist>
											</select>
										</div>
									</div>
								</div>
								<div class="col-md-3 padding-0"> 
									<div class="dataTables_filter" id="table_id_filter">
										<label>
											<div class="input-group">
												<input type="search" value="{$Think.request.search_keyword}" name="search_keyword" placeholder="请输入关键字检索" class="form-control" />
												<span class="input-group-btn">
													<input type="submit" class="btn btn-success" value="查询" />
												</span>
											</div>
										</label>
									</div>
								</div>
							</form>
						</div>
					</div>
					<form id="myform" name="myform" action="__APP__?g={:GROUP_NAME}&m={:MODULE_NAME}&a=delete" method="post" >
						<table class="table table-hover table-striped table-bordered table-advanced tablesorter tb-sticky-header">
							<thead>
								<tr>
									<th width="10"><input type="checkbox" class="checkall" /></th>
									<th width="100">学校代码</th>
									<th>学校名称</th>
									<th>所属地区</th>
								    <th width="200">操作</th>
								</tr>
							</thead>
							<tbody>
								<volist name="data" id="vo">
									<tr>
										<td><input type="checkbox" id="ids" name="ids[{$i}]" value="{$vo.id}" /></td>
										<td>{$vo.code}</td>
										<td>{$vo.name}</td>
										<td>{$vo.area_code}&nbsp;&nbsp;{$vo.area}</td>
										<td>
											<a type="button" href="__APP__?g={:GROUP_NAME}&m={:MODULE_NAME}&a=edit&id={$vo.id}" class="btn btn-blue btn-xs mbs"><i class="fa fa-edit"></i>&nbsp;编辑</a>&nbsp;
											<a type="button" href="javascript:confirm_delete('ids[{$i}]')" class="btn btn-danger btn-xs mbs"><i class="fa fa-trash-o"></i>&nbsp;删除</a> 
										</td>
									</tr>
								</volist>
							</tbody>
						</table>
					</form>
					<!-- 显示分页信息 --> 
					{$show}
				</div>
			</div>
		</div>
	</div>
	
</block>
